package com.itcanteen.medical.patient.service;

import com.itcanteen.medical.common.exception.AdException;
import com.itcanteen.medical.patient.entity.Medication;

/**
 * 提醒 业务层
 * @author 1804A-TeamOne
 * @date 2020-12-17 16:18
 */
public interface MedicationService {

    /**
     * 提醒开关
     * @author 1804A-TeamOne
     * @date 2020-12-17 16:19
     * @param medication 药品提醒
     * @param flag 标记
     * @throws AdException 统一异常
     */
    void onOffRemind(Medication medication, Integer flag) throws AdException;

    /**
     * 根据患者id查找提醒
     * @author 1804A-TeamOne
     * @date 2020-12-17 16:22
     * @param id 患者id
     * @return com.itcanteen.medical.patient.entity.Medication
     */
    Medication findByPatientId(Integer id);
}
